<?php
$this->pageTitle = Yii::app()->name . ' - Login';
?>



<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'login-form',
    'enableClientValidation' => true,
    'clientOptions' => array(
        'validateOnSubmit' => true,
    ),
    'htmlOptions' => array(
        'class' => "mainForm",
        'id' => 'valid',
    )
)
);
?>
<fieldset>
    <div class="loginRow noborder">
        <?php //echo $form->labelEx($model, 'username', array("for" => "req1")); ?>
        <label for="req1">Username:</label>
        <div class="loginInput">
            <?php echo $form->textField($model, 'username', array("class" => "validate[required]", "id" => "req1")); ?>
            <?php echo $form->error($model, 'username'); ?>
        </div>
        <div class="fix"></div>
    </div>

    <div class="loginRow">
        <?php //echo $form->labelEx($model, 'password', array("for" => "req2")); ?>
        <label for="req2">Password:</label>
        <div class="loginInput">
            <?php echo $form->passwordField($model, 'password', array("class" => "validate[required]")); ?>

        </div>
        <div class="fix"></div>
    </div>

    <div class="loginRow">
        <div class="rememberMe">
            <?php echo $form->checkBox($model, 'rememberMe'); ?>
            <?php echo $form->label($model, 'rememberMe'); ?>
            <?php //echo $form->error($model, 'rememberMe'); ?>
<!--                <input type="checkbox" id="check2" name="chbox" /><label>Remember me</label>-->
        </div>

<!--                            <input type="submit" value="Log me in" class="greyishBtn submitForm" />-->
        <?php echo CHtml::submitButton('Login', array("class" => "greyishBtn submitForm")); ?>
        <div class="fix"></div>
         <?php echo $form->error($model, 'password', array("style" => "color:red;"));?>
    </div>
</fieldset>
<?php $this->endWidget(); ?>
